module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;

    const CommentSchema = new Schema({
        content: { type: String },
        type: { type: Number },
        sender: { type: mongoose.Types.ObjectId },
        thumbsUp: { type: Number }
    });

    return mongoose.model('Comment', CommentSchema, 'comment');
}
